<?php
/**
 * Created by PhpStorm.
 * User: alice
 * Date: 2015/12/28
 * Time: 12:26
 */

/**
 * Class Involved_SupplierModel
 */

class Involved_ProCommentModel extends BaseModel{

    protected $table = 'pro_comment';


    /******************   App接口   *********************/

    /**
     * 获取商家信息
     * @return
     */
    public function GetCommentList($product_id)
    {
        return  DB::table($this->table)
                ->leftJoin('user','pro_comment.user_id','=','user.user_id')
                ->select('avatar','user_name','pro_comment.content')
                ->where(['product_id'=>$product_id])
                ->get();

    }



}